package com.bw.entity;

import lombok.Data;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;

@Data
public class GoodsInfo {


    private String num;
    @NotBlank(message = "名称不为空")
    private String name;
    @NotNull(message = "品牌不为空")
    private Integer brandId;
    @NotNull(message = "分类不为空")
    private Integer categoryId;
    @NotBlank(message = "价格不为空")
    private String price;
    @NotNull(message = "上架不为空")
    private Integer flag;


    private Integer createUser;


    private String brandName;

    private String categoryName;

}
